<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Event Detail</title>
    </h:head>
    <h:body>
        <p:layout fullPage="true">
            <p:layoutUnit position="north" size="125" style="border: 0px">
                <h:panelGrid columns="3" style="width: 100%">
                    <h:graphicImage value="/images/Simbolo_Meteocal.png" height="100"/>
                    <h1>Event Creation</h1>
                    <h:button outcome="eventcreation" value="Modify the event" />
                </h:panelGrid>
            </p:layoutUnit> 
            <p:layoutUnit position="center">
                <form>
                    <h:panelGrid columns="2" style="width: 100%">
                        <div>
                            Event Name: 
                            <h:outputLabel id="nameevent" value="#{eventBean.nome}"/>
                            Event Description:
                            <h:outputText id="descevent" value="#{eventBean.descr}"/>
                        </div>
                        <div>
                            Event Type:
                            <h:outputLabel  id="typevent" value="#{eventBean.type}"/>
                        </div>
                        <div>
                            Begin Date:
                            <h:outputLabel id="begindate" value="#{eventBean.begDate}"/>
                            End Date:
                            <h:outputLabel id="enddate" value="#{eventBean.endDate}"/>
                        </div>
                        <div>
                            City: 
                            <h:outputLabel id="cityevent" value="#{eventBean.city}"/>
                            Country:
                            <h:outputLabel id="countryevent" value="#{eventBean.country}"/>
                            Address :
                            <h:outputLabel id="addressevent" value="#{eventBean.address}"/>
                        </div>
                        <div>
                            Weather Forecast: 
                            <h:outputLabel id="weatherevent" value="#{eventBean.weather}"/>
                        </div>
                    </h:panelGrid>
                    Partecipants list :
                    <br/>
                    <h:outputLabel id="partecipants" value="Partecipants" /> 
                    <br/>
                    <h:outputLabel id="partecipants" value="#{eventBean.showParticipants}"/>
                </form>
            </p:layoutUnit>
            <p:layoutUnit position="south" size="60">
                <h:panelGrid columns="3" style="width: 100%">
                    <h:button outcome="contacts" value="Search for a user" />
                    
                    <h:button outcome="notifications" value="Move to your notifications page" />
                    
                    <h:button outcome="index" value="Logout" />
                </h:panelGrid>
            </p:layoutUnit>
        </p:layout>
    </h:body>
</html>
